package com.ruoyi.boat.utils;

public class DoubleUtil {


    public static Double toFixed(Double num, int digitalCount) {
        if (num == null) return null;
        return Math.floor(num * Math.pow(10, digitalCount)) / Math.pow(10, digitalCount);
    }

}
